package com.xjnt.tvos.tvlibs;

import com.xjnt.tvos.tvlibs.jsbridge.IServerCallback;
import com.xjnt.tvos.tvlibs.jsbridge.annotation.ApiMethod;
import com.xjnt.tvos.tvlibs.jsbridge.annotation.Param;
import com.xjnt.tvos.tvlibs.jsbridge.data.DataBuilder;
import com.xjnt.tvos.tvlibs.jsbridge.data.ParamConsts;

/**
 * Created by caoyong on 18-1-10.
 */

public interface IJSClass {
    static class User {
        private String name;
        private int age;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }
    @ApiMethod("nativeTest")
    void test(@Param(ParamConsts.KEY_REQUEST_PARAMS) User user,
              @Param(type=Param.ParamType.CALLBACK, value = ParamConsts.KEY_CALLBACK) IServerCallback serverCallback);
}
